package zhizhemodi.tech.short_term_bwork.entity;

import java.sql.Timestamp;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    // 用户编号
    @TableId(type = IdType.AUTO)
    private Integer userId;
    // 用户密码
    private String userPwd;
    // 所属机构
    private Integer departmentId;
    // 用户名称
    private String userName;
    // 真实姓名
    private String trueName;
    // 联系电话
    private String phoneNum;
    // 电子邮箱
    private String email;
    // 更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;
    // 用户状态
    @JsonProperty("userState")
    private Boolean userState;
}
